package com.glasses.entity;

import com.glasses.orm.base.BaseBean;
import com.glasses.orm.dictionary.TicketStatus;
import com.glasses.orm.dictionary.TicketType;

/**
 * Created by ashin on 2018/10/11.
 */
public class Ticket extends BaseBean {

    /**
     * 卡号
     */
    private String cardNum;

    /**
     * 状态
     */
    private String status;

    /**
     * 兑换价格
     */
    private String price;

    /**
     * 说明
     */
    private String info;

    /**
     * 昵称
     */
    private String nickName;

    /**
     * 領取卡券人的openid
     */
    private String openId;

    /**
     * 状态 中文
     */
    private String statusInfo;

    /**
     * 优惠券类型 0、优惠券 1、折扣券(未开放)
     */
    private String type;

    /**
     * 优惠券类型 中文
     */
    private String typeInfo;

    /**
     * 优惠券名称
     */
    private String title;

    /**
     * 截止时间
     */
    private String endTime;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTypeInfo() {
        return getEnumKey(TicketType.class, type);
    }

    public void setTypeInfo(String typeInfo) {
        this.typeInfo = typeInfo;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getCardNum() {
        return cardNum;
    }

    public void setCardNum(String cardNum) {
        this.cardNum = cardNum;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getStatusInfo() {
        return getEnumKey(TicketStatus.class, status);
    }

    public void setStatusInfo(String statusInfo) {
        this.statusInfo = statusInfo;
    }
}
